package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdDatasource;

import java.util.List;

@Mapper
public interface AdDatasourceMapper {
    int deleteByPrimaryKey(Integer datasourceId);

    int insert(AdDatasource record);

    int insertSelective(AdDatasource record);

    AdDatasource selectByPrimaryKey(Integer datasourceId);

    int updateByPrimaryKeySelective(AdDatasource record);

    int updateByPrimaryKey(AdDatasource record);


    List<AdDatasource> selectAdDatasources();

    List<AdDatasource> selectAdDatasourcesSearched(@Param("criteria")String criteria);
}